// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * NavAfterSellOrderDetail
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "nav_after_sell_order_detail", autoResultMap = true)
@Schema(title = "订单管理售后工单售后信息")
public class NavAfterSellOrderDetail implements Serializable {

  /**
   * 平台单号
   */
  @TableField(value = "`platform_order_id`")
  @Schema(title = "平台单号")
  private String platformOrderId;

  /**
   * 所属订单管理售后工单
   */
  @TableField(value = "`parent_nav_after_sell_order`")
  @JoinField(NavAfterSellOrder.class)
  @Schema(title = "所属订单管理售后工单")
  private Long parentNavAfterSellOrder;

  /**
   * 订单管理产品编号
   */
  @TableField(value = "`nav_sell_order_detail_id`")
  @Schema(title = "订单管理产品编号")
  private Long navSellOrderDetailId;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 图片
   */
  @TableField(value = "`img`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> img;

  /**
   * 产品
   */
  @TableField(value = "`product_id`")
  @JoinField(Product.class)
  @Schema(title = "产品")
  private Long productId;

  /**
   * 品名
   */
  @TableField(value = "`product_name`")
  @Schema(title = "品名")
  private String productName;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * MSKU
   */
  @TableField(value = "`msku`")
  @Schema(title = "MSKU")
  private String msku;

  /**
   * 单价
   */
  @TableField(value = "`price`")
  @Schema(title = "单价")
  private java.math.BigDecimal price;

  /**
   * 订购数量
   */
  @TableField(value = "`quantity`")
  @Schema(title = "订购数量")
  private Integer quantity;

  /**
   * 售后数量
   */
  @TableField(value = "`after_quantity`")
  @Schema(title = "售后数量")
  private Integer afterQuantity;

  /**
   * 商品金额
   */
  @TableField(value = "`amount`")
  @Schema(title = "商品金额")
  private java.math.BigDecimal amount;

  /**
   * 售后说明
   */
  @TableField(value = "`after_remark`")
  @Schema(title = "售后说明")
  private String afterRemark;

  /**
   * 售后图片
   */
  @TableField(value = "`after_img`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "售后图片")
  private List<SysFile> afterImg;

  /**
   * 商品备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "商品备注")
  private String remark;

  /**
   * 已退款
   */
  @TableField(value = "`refund_amount`")
  @Schema(title = "已退款")
  private java.math.BigDecimal refundAmount;

  /**
   * 本次退款
   */
  @TableField(value = "`this_amount`")
  @Schema(title = "本次退款")
  private java.math.BigDecimal thisAmount;
}
